<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// FastXCMS安装信息
if($configinfo['fastxcmsok'] == 1)
{	
	// 当前广告Banner
	$advbanner = getadvbanner();
	$this->assign('advbanner', $advbanner);
	
	// 开启列表单页面自动跳转
	$topmodule_dymconfig = gettopmodule($configinfo['moduleid'],"dymconfig");
	if($configinfo['dymloctionok'] == 1 && $topmodule_dymconfig['dymloctionok'] == 1 && $configinfo['moduleinfo']['index_num'] == '自定义单页')
	{
		if($configinfo['langok'] == 1)$wherelang = "and lang='$lang'";	
		$article = datainfo("fastxcms_portal_post",moduleaqvarval('id','intval'),"category_id","1=1 $wherelang order by list_order desc,id desc");
		$locationurl = cmf_url('portal/Article/index',array('id'=>$article['id'],'cid'=>$configinfo['columnid']));
		headerlocation($locationurl);
	}
	
	// 当前位置
	$htmlinfo = array();
	$homeurl = cmf_url('portal/index/index');
	$htmlinfo['homehtml'] = '<a href="'.$homeurl.'">{name}</a> > ';
	if($configinfo['langok'] == 1)$hereurllang = "-{lang}";
	$htmlinfo['herehtml'] = '<a href="/list{id}'.$hereurllang.'.html">{name}</a> > ';
	$htmlinfo['herenowhtml'] = "{name}";
	$htmlinfo['titlehtml'] = "";
	$ur_here = seourhere('fastxcms_portal_category',$configinfo['columninfo']['id'],'id','parent_id','name',$htmlinfo);
	$this->assign('ur_here', $ur_here);
}
?>